﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<ComputerShopE3.Models.MAINBOARD>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Chỉnh sửa Mainboard</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Thông tin chi tiết</legend>
            
            <%if (ViewData["error"] == null)
              Html.RenderPartial("EditProductPartialView", Model.SAN_PHAM);
          else
          %>
           <%=ViewData["error"]%>
           
<%--            <p>
                <label for="id">id:</label>
                <%= Html.TextBox("linhkien.id", Model.id) %>
                <%= Html.ValidationMessage("id", "*") %>
            </p>--%>
            <p>
                <label for="Cpu">Cpu:</label>
                <%= Html.TextBox("linhkien.Cpu", Model.Cpu) %>
                <%= Html.ValidationMessage("Cpu", "*") %>
            </p>
            <p>
                <label for="Ram">Ram:</label>
                <%= Html.TextBox("linhkien.Ram", Model.Ram) %>
                <%= Html.ValidationMessage("Ram", "*") %>
            </p>
            <p>
                <label for="Chipset">Chipset:</label>
                <%= Html.TextBox("linhkien.Chipset", Model.Chipset) %>
                <%= Html.ValidationMessage("Chipset", "*") %>
            </p>
            <p>
                <label for="Audio">Audio:</label>
                <%= Html.TextBox("linhkien.Audio", Model.Audio) %>
                <%= Html.ValidationMessage("Audio", "*") %>
            </p>
            <p>
                <label for="Video">Video:</label>
                <%= Html.TextBox("linhkien.Video", Model.Video) %>
                <%= Html.ValidationMessage("Video", "*") %>
            </p>
            <p>
                <label for="form_factor">form_factor:</label>
                <%= Html.TextBox("linhkien.form_factor", Model.form_factor) %>
                <%= Html.ValidationMessage("form_factor", "*") %>
            </p>
            <p>
                <label for="io_control">io_control:</label>
                <%= Html.TextBox("linhkien.io_control", Model.io_control) %>
                <%= Html.ValidationMessage("io_control", "*") %>
            </p>
            <p>
                <label for="Network">Network:</label>
                <%= Html.TextBox("linhkien.Network", Model.Network) %>
                <%= Html.ValidationMessage("Network", "*") %>
            </p>
            <p>
                <label for="Interface">Interface:</label>
                <%= Html.TextBox("linhkien.Interface", Model.Interface) %>
                <%= Html.ValidationMessage("Interface", "*") %>
            </p>
            <p>
                <label for="Expansion">Expansion:</label>
                <%= Html.TextBox("linhkien.Expansion", Model.Expansion) %>
                <%= Html.ValidationMessage("Expansion", "*") %>
            </p>
            <p>
                <input type="submit" value="Lưu thay đổi" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Trở lại danh sách", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <title>Mainboard</title>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

